package edu.sctu.xialei.june.day20150602one;

/**
 * Created by Administrator on 6/1/2015.
 */
public class Call {
    public static void main(String[] args) throws InterruptedException {

        MyThread1 myThread1 = new MyThread1("夏磊----1");
        MyThread1 myThread2 = new MyThread1("夏磊夏磊夏磊----2");
        MyThread1 myThread3 = new MyThread1("夏磊夏磊夏磊夏磊夏磊夏磊----3");
        MyThread2 myThread4 = new MyThread2("夏磊夏磊夏磊夏磊夏磊夏磊夏磊夏磊夏磊----4");

        Thread thread = new Thread(myThread4);

        myThread1.start();

        Thread.sleep(1000);

        myThread2.start();
        myThread3.start();
        thread.start();

    }

}
